<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% 
    String path = request.getContextPath(); 
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 
%>
<!DOCTYPE html>
<html class="no-js" lang="zh">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <title>关于我们 || Rongcha - 抹茶</title>
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!-- Place favicon.ico in the root directory -->
    <link rel="shortcut icon" type="image/x-icon" href="<%=basePath%>images/img/favicon.ico" />
    <!-- All CSS Hear -->
    <link rel="stylesheet" href="<%=basePath%>css/bootstrap.min.css" />
    <link rel="stylesheet" href="<%=basePath%>css/simple-line-icons.css" />
    <link rel="stylesheet" href="<%=basePath%>css/icofont.css" />
    <link rel="stylesheet" href="<%=basePath%>css/magnific-popup.css" />
    <link rel="stylesheet" href="<%=basePath%>css/animate.css" />
    <link rel="stylesheet" href="<%=basePath%>css/nice-select.css" />
    <link rel="stylesheet" href="<%=basePath%>css/jquery-ui.css" />
    <link rel="stylesheet" href="<%=basePath%>css/owl.carousel.min.css" />
    <link rel="stylesheet" href="<%=basePath%>css/mainmenu.css" />
    <!-- Style CSS Hear -->
    <link rel="stylesheet" href="<%=basePath%>css/style.css" />
    <link rel="stylesheet" href="<%=basePath%>css/responsive.css" />
    <style>
        /* 自定义样式 */
        .about-us-section {
            padding: 40px 0;
            background-color: #f9f7f2;
        }
        
        .section-title {
            margin-bottom: 40px;
            text-align: center;
        }
        
        .section-title h2 {
            font-size: 36px;
            color: #3a8b3a;
            position: relative;
            padding-bottom: 20px;
            margin-bottom: 20px;
        }
        
        .section-title h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #3a8b3a;
        }
        
        .about-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            transition: transform 0.3s ease;
            position: relative;
            height: 380px;
            perspective: 1000px;
            cursor: pointer;
        }
        
        .about-card:hover {
            transform: translateY(-10px);
        }
        
        .card-container {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
            transition: all 0.5s ease;
        }
        
        .card-front {
            background-size: cover;
            background-position: center;
            color: white;
            z-index: 2;
        }
        
        .card-back {
            background: white;
            transform: rotateY(180deg);
            z-index: 3;
        }
        
        .card-flipped .card-container {
            transform: rotateY(180deg);
        }
        
        .card-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 15px;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
        }
        
        .card-instruction {
            position: absolute;
            bottom: 20px;
            width: 100%;
            text-align: center;
            font-size: 16px;
            color: rgba(255, 255, 255, 0.85);
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
            transition: opacity 0.3s ease;
        }
        
        .about-card:hover .card-instruction {
            opacity: 1;
        }
        
        .about-icon {
            height: 100px;
            width: 100px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f0f8e9;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }
        
        .card-flipped .about-icon {
            transform: scale(1.1);
            background: #3a8b3a;
        }
        
        .card-flipped .about-icon i {
            color: white;
        }
        
        .about-icon i {
            font-size: 50px;
            color: #3a8b3a;
            transition: all 0.3s ease;
        }
        
        .about-content {
            padding: 15px;
            text-align: center;
        }
        
        .about-content h3 {
            color: #3a8b3a;
            margin-bottom: 15px;
            font-size: 22px;
            transition: all 0.3s ease;
        }
        
        .card-flipped .about-content h3 {
            transform: translateY(10px);
        }
        
        .about-content p {
            color: #666;
            line-height: 1.8;
            transition: all 0.5s ease;
            opacity: 0;
            transform: translateY(20px);
        }
        
        .card-flipped .about-content p {
            opacity: 1;
            transform: translateY(0);
        }
        
        .team-member {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .team-member-img {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 20px;
            border: 5px solid #f0f8e9;
            transition: all 0.3s ease;
        }
        
        .team-member-img:hover {
            transform: scale(1.05);
            border-color: #3a8b3a;
        }
        
        .team-member-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }
        
        .team-member-img:hover img {
            transform: scale(1.1);
        }
        
        /* 轮播图样式 - 移动到顶部并铺满主体画面 */
        .location-carousel {
            position: relative;
            width: 100%;
            height: 600px;
            overflow: hidden;
            margin-bottom: 40px;
            border-radius: 15px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
        }
        
        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease;
            background-size: cover;
            background-position: center;
        }
        
        .carousel-slide.active {
            opacity: 1;
        }
        
        .carousel-controls {
            position: absolute;
            bottom: 40px;
            left: 0;
            right: 0;
            text-align: center;
            z-index: 10;
        }
        
        .carousel-indicators {
            display: inline-block;
            padding: 0;
            background:none;
            border-radius: 0;
        }
        
        .indicator {
            display: inline-block;
            width: 14px;
            height: 14px;
            background: #fff;
            border-radius: 50%;
            margin: 0 7px;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.3s ease;
            border: 1px solid #3a8b3a;
        }
        
        .indicator.active {
            opacity: 1;
            background: #3a8b3a;
            transform: scale(1.2);
        }
        
        .carousel-arrows {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            padding: 0 25px;
            z-index: 10;
        }
        
        .arrow {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 28px;
            color: #3a8b3a;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }
        
        .arrow:hover {
            background: #3a8b3a;
            color: white;
            transform: scale(1.1);
        }
        
        .location-info {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            color: white;
            text-align: center;
            width: 80%;
            max-width: 800px;
            padding: 30px;
            background: rgba(58, 139, 58, 0.85);
            border-radius: 10px;
            backdrop-filter: blur(5px);
        }
        
        .location-info h3 {
            margin-bottom: 15px;
            font-size: 36px;
            font-weight: bold;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        }
        
        .location-info p {
            margin-bottom: 0;
            font-size: 22px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        }
        
        .overlay-text {
            position: absolute;
            top: 40%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 9;
            color: white;
            text-align: center;
            font-size: 60px;
            font-weight: bold;
            text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
            opacity: 0.2;
            width: 100%;
            font-family: 'Georgia', serif;
            letter-spacing: 5px;
        }
        
        .privacy-content {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        
        .privacy-content h3 {
            color: #3a8b3a;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f8e9;
        }
        
        .privacy-content p {
            line-height: 1.8;
            color: #666;
            margin-bottom: 20px;
        }
        
        .privacy-content ul {
            padding-left: 20px;
            margin-bottom: 20px;
        }
        
        .privacy-content ul li {
            margin-bottom: 10px;
            line-height: 1.6;
            position: relative;
            padding-left: 25px;
        }
        
        .privacy-content ul li:before {
            content: "•";
            color: #3a8b3a;
            font-size: 20px;
            position: absolute;
            left: 0;
            top: -2px;
        }
        
        /* 内容区块优化 */
        .content-section {
            background: white;
            padding: 50px 0;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.05);
            margin-top: 40px;
        }
        
        .highlight-box {
            background: #f0f8e9;
            border-left: 5px solid #3a8b3a;
            padding: 20px;
            margin: 30px 0;
            border-radius: 0 8px 8px 0;
            position: relative;
            overflow: hidden;
        }
        
        .highlight-box:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('<%=basePath%>images/img/banner/bg-03.jpg') center/cover no-repeat;
            opacity: 0.05;
            z-index: 0;
        }
        
        .highlight-box p {
            position: relative;
            z-index: 1;
            margin: 0;
            font-size: 18px;
            line-height: 1.8;
        }
        
        .card-flip-hint {
            position: absolute;
            bottom: 15px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 14px;
            color: rgba(58, 139, 58, 0.8);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .card-flipped .card-flip-hint {
            opacity: 1;
        }
    </style>
    <script src="<%=basePath%>js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
    <div class="wrapper">
        <!-- 引入头部 -->
        <header>
            <div class="header-area bg-gray">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-3 col-md-4">
                            <div class="logo">
                                <a href="<%=basePath%>views/user/index.jsp">
                                    <img src="<%=basePath%>images/img/logo/logo.png" alt="" />
                                </a>
                            </div>
                        </div>
                        <div class="col-lg-9 col-md-8">
                            <div class="header-main-content">
                                <div class="main-menu-area d-none d-lg-block">
                                    <nav>
                                        <ul>
                                            <li>
                                                <a href="<%=basePath%>views/user/index.jsp">首页</a>
                                            </li>
                                            <li class="active">
                                                <a href="<%=basePath%>views/user/aboutUs.jsp">关于我们</a>
                                            </li>
                                            <li>
                                                <a href="<%=basePath%>user/shop">商城 <i class="icofont icofont-simple-down"></i></a>
                                                <ul class="sub-menu">
                                                    <li><a href="<%=basePath%>user/cart">购物车</a></li>
                                                    <li><a href="<%=basePath%>user/orders">订单</a></li>
                                                </ul>
                                            </li>
                                            <li>
                                                <a href="#">我的 <i class="icofont icofont-simple-down"></i></a>
                                                <ul class="sub-menu">
                                                    <li><a href="<%=basePath%>views/user/my-account.jsp">我的账户</a></li>
                                                    <li><a href="<%=basePath%>views/login.jsp">登录注册</a></li>
                                                </ul>
                                            </li>
                                            <li>
                                                <a href="<%=basePath%>views/user/blog.jsp">博客</a>
                                            </li>
                                            <li>
                                                <a href="<%=basePath%>views/user/contact-us.jsp">联系我们</a>
                                            </li>
                                        </ul>
                                    </nav>
                                </div>
                                <div class="right-blok-box">
                                    <div class="serch-container hidden-xs">
                                        <a href="#"><i class="icon-magnifier"></i></a>
                                        <div class="blog-search">
                                            <form action="#" id="search">
                                                <input type="text" placeholder="点击此处进行搜索" name="s" />
                                                <button type="submit"><i class="icofont icofont-search-alt-1"></i></button>
                                            </form>
                                        </div>
                                    </div>
                                    <div class="mine-cart-box">
                                        <a href="<%=basePath%>user/cart"><i class="icon-handbag"></i><span id="cart-total">2</span></a>
                                    </div>
                                    <div class="top-login-menu">
                                        <div class="top-login-inner">
                                            <c:choose>
                                                <c:when test="${not empty sessionScope.customerName}">
                                                    <a href="<%=basePath%>views/user/my-account.jsp">
                                                        <i class="icon-user"></i>
                                                        <span class="user-login">${sessionScope.customerName}</span>
                                                    </a>
                                                </c:when>
                                                <c:otherwise>
                                                    <a href="<%=basePath%>views/login.jsp">
                                                        <i class="icon-user"></i>
                                                        <span class="user-login">登录</span>
                                                    </a>
                                                </c:otherwise>
                                            </c:choose>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </header>

        <!-- 茶园基地位置轮播图 - 移动到顶部并铺满主体画面 -->
        <div class="location-carousel">
            <!-- 茶园图片1 -->
            <div class="carousel-slide active" style="background-image: url('<%=basePath%>images/img/banner/about-bg.jpg');"></div>
            
            <!-- 茶园图片2 -->
            <div class="carousel-slide" style="background-image: url('<%=basePath%>images/img/banner/bg-03.jpg');"></div>
            <!-- 茶园图片3 -->
            <div class="carousel-slide" style="background-image: url('<%=basePath%>images/img/blog/lg-blog-bg.jpg');"></div>
            
            <!-- 半透明文字背景 -->
            <div class="overlay-text">茶园基地</div>
            
            
            <!-- 轮播控制箭头 -->
            <div class="carousel-arrows">
                <div class="arrow prev">❮</div>
                <div class="arrow next">❯</div>
            </div>
            
            <!-- 轮播指示器 -->
            <div class="carousel-controls">
                <div class="carousel-indicators">
                    <span class="indicator active" data-index="0"></span>
                    <span class="indicator" data-index="1"></span>
                    <span class="indicator" data-index="2"></span>
                </div>
            </div>
        </div>

        <!-- 关于我们内容区域 -->
        <div class="about-us-section">
            <div class="container">
                <div class="section-title">
                    <h2>关于我们</h2>
                    <p>Rongcha抹茶致力于提供最优质的抹茶产品和最贴心的服务</p>
                </div>
                
                <div class="highlight-box">
                    <p>我们拥有200亩有机茶园基地，采用传统工艺与现代技术相结合的生产方式，确保每一片茶叶都达到最高品质标准。</p>
                </div>
                
                <div class="row">
                    <!-- 送货信息区块 -->
                    <div class="col-lg-3 col-md-6">
                        <div class="about-card">
                            <div class="card-container">
                                <div class="card-front" style="background-image: url('<%=basePath%>images/img/banner/bg-03.jpg');">
                                    <div class="card-title">送货信息</div>
                                    
                                </div>
                                <div class="card-back">
                                    <div class="about-icon">
                                        <i class="icon-truck"></i>
                                    </div>
                                    <div class="about-content">
                                        <h3>送货信息</h3>
                                        <p>我们提供全国范围内的配送服务，订单满¥99免运费，一般1-3个工作日内送达。支持多种物流方式，确保您及时收到新鲜产品。</p>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 隐私策略区块 -->
                    <div class="col-lg-3 col-md-6">
                        <div class="about-card">
                            <div class="card-container">
                                <div class="card-front" style="background-image: url('<%=basePath%>images/img/banner/bg-03.jpg');">
                                    <div class="card-title">隐私策略</div>
                         
                                </div>
                                <div class="card-back">
                                    <div class="about-icon">
                                        <i class="icon-lock"></i>
                                    </div>
                                    <div class="about-content">
                                        <h3>隐私策略</h3>
                                        <p>我们高度重视用户隐私安全，严格遵守个人信息保护法规。您的数据仅用于订单处理和提升服务质量，绝不会泄露给第三方。</p>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 团队与基地区块 -->
                    <div class="col-lg-3 col-md-6">
                        <div class="about-card">
                            <div class="card-container">
                                <div class="card-front" style="background-image: url('<%=basePath%>images/img/banner/bg-03.jpg');">
                                    <div class="card-title">团队与基地</div>
                             
                                </div>
                                <div class="card-back">
                                    <div class="about-icon">
                                        <i class="icon-people"></i>
                                    </div>
                                    <div class="about-content">
                                        <h3>团队与基地</h3>
                                        <p>我们拥有专业的抹茶研究团队和茶园种植基地，从源头把控品质。团队成员包括茶艺大师、营养师和品控专家。</p>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 联系我们区块 -->
                    <div class="col-lg-3 col-md-6">
                        <div class="about-card">
                            <div class="card-container">
                                <div class="card-front" style="background-image: url('<%=basePath%>images/img/banner/bg-03.jpg');">
                                    <div class="card-title">联系我们</div>
         
                                </div>
                                <div class="card-back">
                                    <div class="about-icon">
                                        <i class="icon-call-end"></i>
                                    </div>
                                    <div class="about-content">
                                        <h3>联系我们</h3>
                                        <p>客服热线：+99 111 222 333<br>
                                        邮箱：test@example.com<br>
                                        工作时间：9:00-21:00<br>
                                        欢迎随时咨询</p>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="content-section">
                    <div class="row mt-5">
                        <div class="col-lg-6">
                            <div class="privacy-content">
                                <h3>详细隐私政策</h3>
                                <p>我们深知个人信息对您的重要性，并会尽全力保护您的个人信息安全可靠。我们致力于维持您对我们的信任，恪守以下原则，保护您的个人信息：</p>
                                <ul>
                                    <li>权责一致原则：通过落实技术和管理措施，保护您的个人信息安全</li>
                                    <li>目的明确原则：向您明示处理个人信息的目的、方式、范围</li>
                                    <li>选择同意原则：向您明示处理个人信息的目的、方式、范围</li>
                                    <li>最少够用原则：除与您另有约定外，只处理满足您授权同意的目的所需的最少个人信息</li>
                                    <li>确保安全原则：采取严格的安全保护措施，保障您的个人信息安全</li>
                                    <li>主体参与原则：保障您查询、更正、删除个人信息的权利</li>
                                </ul>
                            </div>
                        </div>
                        
                        <div class="col-lg-6">
                            <div class="privacy-content">
                                <h3>团队与基地详情</h3>
                                <p>我们的茶园基地位于成都市郫都区，拥有超过200亩的有机抹茶种植园。茶园采用传统与现代相结合的种植技术，确保每一片茶叶都达到最高品质标准。</p>
                                
                                <div class="row mt-4">
                                    <div class="col-md-6">
                                        <div class="team-member">
                                            <div class="team-member-img">
                                                <img src="<%=basePath%>images/img/blog/1.jpg" alt="张师傅">
                                            </div>
                                            <h4>张师傅</h4>
                                            <p>首席茶艺师</p>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="team-member">
                                            <div class="team-member-img">
                                                <img src="<%=basePath%>images/img/blog/1.jpg" alt="李经理">
                                            </div>
                                            <h4>李经理</h4>
                                            <p>茶园基地负责人</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 引入底部 -->
        <footer class="footer-area">
            <div class="footer-top">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-3 col-md-6">
                            <div class="single-footer-info">
                                <h3 class="footer-info-title">联系我们</h3>
                                <ul class="footer-address">
                                    <li>
                                        <i class="icon-location-pin"></i>
                                        <p class="desc_call">成都市郫都区红光镇银润北一路4号4层</p>
                                    </li>
                                    <li>
                                        <i class="icon-envelope-open"></i>
                                        <a class="mail" href="#">test@example.com</a>
                                    </li>
                                    <li>
                                        <i class="icon-phone"></i>
                                        <p class="desc_call">+99 111 222 333</p>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6">
                            <div class="single-footer-info">
                                <h3 class="footer-info-title">关于我们</h3>
                                <ul class="footer-list">
                                    <li><a href="#">送货信息</a></li>
                                    <li><a href="#">隐私策略</a></li>
                                    <li><a href="#">团队 & 基地</a></li>
                                    <li><a href="#">联系我们</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6">
                            <div class="single-footer-info">
                                <h3 class="footer-info-title">我的账户</h3>
                                <ul class="footer-list">
                                    <li><a href="<%=basePath%>views/user/my-account.jsp">我的账户</a></li>
                                    <li><a href="<%=basePath%>user/orders">订单</a></li>
                                    <li><a href="<%=basePath%>user/cart">购物车</a></li>
                                    <li><a href="#">心愿单</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6">
                            <div class="single-footer-info">
                                <h3 class="footer-info-title">关注我们</h3>
                                <div class="social-links">
                                    <a href="#"><i class="icon-social-facebook"></i></a>
                                    <a href="#"><i class="icon-social-twitter"></i></a>
                                    <a href="#"><i class="icon-social-instagram"></i></a>
                                    <a href="#"><i class="icon-social-pinterest"></i></a>
                                </div>
                                <div class="newsletter mt-3">
                                    <p>订阅我们的新闻通讯</p>
                                    <form>
                                        <input type="email" placeholder="您的邮箱地址">
                                        <button type="submit">订阅</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <div class="container">
                    <div class="row">
                        <div class="col">
                            <div class="copy-right">
                                <p>Copyright © 2025 Rongcha抹茶. 保留所有权利。</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </footer>
    </div>

    <!-- jquery -->
    <script src="<%=basePath%>js/vendor/jquery-1.12.4.min.js"></script>
    <!-- all plugins JS hear -->
    <script src="<%=basePath%>js/popper.min.js"></script>
    <script src="<%=basePath%>js/bootstrap.min.js"></script>
    <script src="<%=basePath%>js/owl.carousel.min.js"></script>
    <script src="<%=basePath%>js/jquery.mainmenu.js"></script>
    <script src="<%=basePath%>js/ajax-email.js"></script>
    <script src="<%=basePath%>js/plugins.js"></script>
    <!-- main JS -->
    <script src="<%=basePath%>js/main.js"></script>
    
    <script>
        // 轮播图功能
        $(document).ready(function() {
            const slides = $('.carousel-slide');
            const indicators = $('.indicator');
            let currentSlide = 0;
            
            // 自动轮播
            function startCarousel() {
                setInterval(() => {
                    goToSlide((currentSlide + 1) % slides.length);
                }, 5000);
            }
            
            // 跳转到指定幻灯片
            function goToSlide(index) {
                slides.removeClass('active');
                indicators.removeClass('active');
                
                slides.eq(index).addClass('active');
                indicators.eq(index).addClass('active');
                
                currentSlide = index;
            }
            
            // 下一个幻灯片
            $('.arrow.next').click(function() {
                goToSlide((currentSlide + 1) % slides.length);
            });
            
            // 上一个幻灯片
            $('.arrow.prev').click(function() {
                goToSlide((currentSlide - 1 + slides.length) % slides.length);
            });
            
            // 指示器点击事件
            indicators.click(function() {
                const index = $(this).data('index');
                goToSlide(index);
            });
            
            // 启动轮播
            startCarousel();
            
            // 添加视差滚动效果
            $(window).scroll(function() {
                const scrollTop = $(this).scrollTop();
                $('.carousel-slide').each(function() {
                    const speed = 0.5;
                    const yPos = -(scrollTop * speed);
                    $(this).css('background-position', 'center ' + yPos + 'px');
                });
            });
            
            // 为卡片添加滚动翻转效果
            $('.about-card').each(function() {
                let flipped = false;
                let scrollCount = 0;
                const card = $(this);
                
                card.on('mouseenter', function() {
                    scrollCount = 0;
                });
                
                card.on('wheel', function(e) {
                    if (!flipped) {
                        e.preventDefault();
                        scrollCount += e.originalEvent.deltaY;
                        
                        // 当滚动量达到一定阈值时翻转卡片
                        if (Math.abs(scrollCount) > 100) {
                            card.addClass('card-flipped');
                            flipped = true;
                        }
                    }
                });
                
                // 点击卡片也可以翻转
                card.on('click', function() {
                    if (!flipped) {
                        card.addClass('card-flipped');
                        flipped = true;
                    } else {
                        card.removeClass('card-flipped');
                        flipped = false;
                    }
                });
                
                // 鼠标移出卡片时翻转回去
                card.on('mouseleave', function() {
                    if (flipped) {
                        // 设置延迟翻转回去，避免立即翻转影响体验
                        setTimeout(function() {
                            if (flipped) {
                                card.removeClass('card-flipped');
                                flipped = false;
                            }
                        }, 1000);
                    }
                });
            });
        });
    </script>
</body>
</html>